package com.rockcent.mall.lib.dto;

import com.rockcent.common.domain.DtoEntity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by hone on 17-3-17.
 */
public class MenuTreeDTO extends DtoEntity implements Serializable {
    private String name;
    private String link;
    private Long parentId;
    private Long sort;
    private List<MenuTreeDTO> children = new ArrayList<>();

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getLink() {
        return link;
    }

    public void setLink(String link) {
        this.link = link;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public List<MenuTreeDTO> getChildren() {
        return children;
    }

    public void setChildren(List<MenuTreeDTO> children) {
        this.children = children;
    }

    public Long getSort() {
        return sort;
    }

    public void setSort(Long sort) {
        this.sort = sort;
    }

    @Override
    public String toString() {
        return "MenuTreeDTO{" +
                "name='" + name + '\'' +
                ", link='" + link + '\'' +
                ", parentId=" + parentId +
                ", sort=" + sort +
                ", children=" + children +
                '}';
    }
}
